<?php

use Twoir\Anroute\Routing\Router;

function route(Router $router, string $name, array $pathParams = [], array $queryParams = []): ?string
{
    return $router->generateUrl($name, $pathParams, $queryParams);
}
